package com.ygqh.baby.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygqh.baby.mapper.YgSupplierLogMapper;
import com.ygqh.baby.po.YgSupplierLog;
import com.ygqh.baby.service.YgSupplierLogService;

@Service
public class YgSupplierLogServiceImpl implements YgSupplierLogService {

	@Autowired
	private YgSupplierLogMapper ygSupplierLogMapper;

	@Override
	public int saveYgSupplierLog(YgSupplierLog ygSupplierLog) {
		if (ygSupplierLog.getRemark().getBytes().length > 60000) {
			ygSupplierLog.setRemark(null);
		}
		return ygSupplierLogMapper.insertSelective(ygSupplierLog);
	}
	
}
